package com.video_study.result;

//响应的枚举类型
public enum ExceptionMsg {

    SUCCESS("200","操作成功"),
    FAILD("999999","操作失败"),
    PARAMERROR("000001","参数错误"),
    FILEEMPTY("000400","文件为空"),
    LIMITPICTURESIZE("000401","图片大小不能超过2M"),
    LIMITPICTURETYPE("000402","图片类型必须为jpg，png，jpeg");
    //alt+insert
    private String code;
    private String msg;
    ExceptionMsg(String code,String msg ) {
        this.code = code;
        this.msg  = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
